package cn.edu.xmu.oomall.payment.microservice;

import cn.edu.xmu.oomall.payment.model.vo.SimplePaymentVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "order-service",url= "http://122.9.146.217:8095")
public interface OrderService {
    /**
     * 获得自己订单的支付信息
     */
    @GetMapping("/orders/{id}/payment")
    InternalReturnObject<SimplePaymentVo> selectPayment(@PathVariable Long id);


}
